package util;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-3-20
 * Time: 下午3:46
 */
public class ReadJson {

    public static String getJsonStr(String path){
        File file = new File(path);
        String jsonStr =null;
        {
            try {
                jsonStr = FileUtils.readFileToString(file, "UTF-8");
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return jsonStr;
    }
}
